Class L2NatProcessImpl

All Implemented Interfaces:
IPCObject, L2NatProcess, Process

public class L2NatProcessImpl extends ProcessImpl implements L2NatProcess
Information provided by the PKI file:

    \class L2NatProcess
    
    \brief L2NatProcess is the process that handles Nat for asa.
    
    \example network().getDevice("Router0").getProcess("L2NatProcess")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getInstanceNamesList

      public List<String> getInstanceNamesList()
      Information provided by the PKI file:
      
          \brief Returns the instance names list.
          
          \return vector<string>, value is a list of the instance names.
          
              
      Specified by:
      getInstanceNamesList in interface L2NatProcess
      Returns:
      List<String> Returns a List<String>
    • getNatInstance

      public L2NatInstance getNatInstance(String instanceName)
      Information provided by the PKI file:
      
          \brief Returns the nat instance.
          
          \return L2NatInsance, value is the nat instance.
          
              
      Specified by:
      getNatInstance in interface L2NatProcess
      Parameters:
      instanceName - Takes in a parameter of instanceName
      Returns:
      L2NatInstance Returns a L2NatInstance
    • removeNatInstance

      public boolean removeNatInstance(String instanceName)
      Information provided by the PKI file:
      
          \brief Removes the nat instance with the given name.
          
          \param instanceName, name of the nat instance to remove.
          
          \return bool, value is true if a instance with the given name was removed, false if not.
          
              
      Specified by:
      removeNatInstance in interface L2NatProcess
      Parameters:
      instanceName - Takes in a parameter of instanceName
      Returns:
      boolean Returns a boolean
    • addInstance

      public boolean addInstance(String instanceName)
      Information provided by the PKI file:
      
          \brief Adds a instance with the given name if no instance with that name already exists.
          
          \param instanceName, name of the nat instance to add.
          
          \return bool, value is true if the instance could be added, false if not.
          
              
      Specified by:
      addInstance in interface L2NatProcess
      Parameters:
      instanceName - Takes in a parameter of instanceName
      Returns:
      boolean Returns a boolean
    • getTotalTranslation

      public int getTotalTranslation()
      Information provided by the PKI file:
      
          \brief Returns the total translation count.
          
          \return int, value is the total translation count.
          
              
      Specified by:
      getTotalTranslation in interface L2NatProcess
      Returns:
      int Returns a int
    • getTotalInstanceAttached

      public int getTotalInstanceAttached()
      Information provided by the PKI file:
      
          \brief Returns the total instances attached.
          
          \return int, value is the total instances attached to the instance.
          
              
      Specified by:
      getTotalInstanceAttached in interface L2NatProcess
      Returns:
      int Returns a int
    • getAttachedNatInstanceList

      public List<String> getAttachedNatInstanceList()
      Information provided by the PKI file:
      
          \brief Returns the list of attached nat instances.
          
          \return vector<string>, value is the list of attached nat instances.
          
              
      Specified by:
      getAttachedNatInstanceList in interface L2NatProcess
      Returns:
      List<String> Returns a List<String>
    • getTranslatedNatCount

      public int getTranslatedNatCount()
      Information provided by the PKI file:
      
          \brief Returns the total translated nat count.
          
          \return int, value is the total instances attached to the instance.
          
              
      Specified by:
      getTranslatedNatCount in interface L2NatProcess
      Returns:
      int Returns a int
    • getArpFixupCount

      public int getArpFixupCount()
      Information provided by the PKI file:
      
          \brief Returns the Arp Fixup count.
          
          \return int, value is the Arp Fixup count.
          
              
      Specified by:
      getArpFixupCount in interface L2NatProcess
      Returns:
      int Returns a int
    • getTotalNatCount

      public int getTotalNatCount()
      Information provided by the PKI file:
      
          \brief Returns the total nat count.
          
          \return int, value is the total nat count.
          
              
      Specified by:
      getTotalNatCount in interface L2NatProcess
      Returns:
      int Returns a int